<?
/**
 * Copyright 2007 Melange.
 *
 * This file is part of PHP-MELANGE.
 *
 * PHP-MELANGE is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * PHP-MELANGE is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with PHP-MELANGE; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * @category    Melange
 * @package     php-melange
 * @subpackage  cms
 * @copyright   Copyright (c) 2007 Jeroen Simons. All rights reserved
 * @author      Jeroen Simons <jeroen@melange.nl>
 * @link        http://www.melange.nl/
 *
 */
?>
<? $this->response->setStatus(Response::SC_INTERNAL_SERVER_ERROR); ?>
<?=$this->header()?>

    <?//=$this->menu("error")?>

    <h1 class="error">Internal Server Error</h1>

    <? /* Breadcrums route & page info display */ ?>
    <?=$this->route("Internal Server Error")?>

    <p>Internal Server Error occured.</p>

    <fieldset>

        <legend>Error Description</legend>

            <textarea style="width:90%;height:300px;margin-left:20px;">
[Exception]:

Message: <?=htmlspecialchars($this->request->getAttribute(MVC::EXCEPTION_KEY)->getMessage())?>

File: <?=htmlspecialchars($this->request->getAttribute(MVC::EXCEPTION_KEY)->getFile())?>

Line: <?=htmlspecialchars($this->request->getAttribute(MVC::EXCEPTION_KEY)->getLine())?>

Trace:
<?=htmlspecialchars($this->request->getAttribute(MVC::EXCEPTION_KEY)->getTraceAsString())?>


<?=$this->request->getAttribute(MVC::MAPPING_KEY)?>


<?=$this->request?>


<?=$this->session?>

            </textarea>


    </fieldset>

<?=$this->footer()?>